#include "circuitcomponent.h"

CircuitComponent::CircuitComponent(QGraphicsItem *parent)
    : QGraphicsObject(parent)
{
}

QPointF CircuitComponent::portPosition(PortType type) const
{
    return (type == InputPort) ? inputPort() : outputPort();
}

QRectF CircuitComponent::boundingRect() const
{
    return QRectF(-50, -50, 100, 100);
}
